Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open class PortalRequests

Coroutine-based HTTP transport used by every API class in the SDK.

Properties

Link copied to clipboard

The trace ID header used by connect-api (client + custodian APIs).

Functions

Link copied to clipboard

Generates a UUID v4 trace ID for request correlation.

Link copied to clipboard

Returns true when headers already contains a non-blank Portal trace header (case-insensitive).

Link copied to clipboard

Returns true when url targets a Portal-owned host (or a local Portal API). Used to avoid attaching X-Portal-Trace-Id to third-party HTTP calls (e.g. Google Drive, CryptoCompare).

Link copied to clipboard
fun resolveTraceId(traceId: String?): String

Returns traceId when it is non-blank, otherwise generates a fresh UUID.

Link copied to clipboard

Returns the first non-blank value for the Portal trace header (case-insensitive key lookup). When multiple case-variant keys exist, blank entries are skipped.